<link rel="stylesheet" type="text/css" href="<?=n_css('dmspay','dmspay')?>">
<div class="n-row">
<?php $siteInfo = n_api('nsite')->getByScode($data['scode']);?>
	<ol class="a-breadcrumb a-nopadding-left">
		<li><a href=""><i class="fa fa-home"></i> <?=$siteInfo['name']?></a></li>
		<li class="a-breadcrumb-active"><a href="">充值</a></li>
	</ol>
</div>
<div class="n-row">
	<div class="n-col-4 dmspay-block n-nopadding-right"></div>
	<div class="n-col-2 dmspay-block n-nopadding-right">
		<div>
			<p class="title">金币预计还可使用</p>
			<p id="left_days">约<i><?=$data['predict']?></i>天</p>
		</div>
	</div>
	<div class="n-col-2 dmspay-block n-nopadding-right">
		<div>
			<p class="title">剩余金币</p>
			<p class="data"><i><?=$data['balance']?></i>个</p>
		</div>
	</div>
	<div class="n-col-2 dmspay-block n-nopadding-right">
		<div>
			<p class="title">金币消耗（昨天）</p>
			<p class="data"><i><?=$data['yesterday']?></i>个</p>
		</div>
	</div>
	<div class="n-col-2 dmspay-block n-nopadding-right">
		<div>
			<p class="title">30天平均消耗</p>
			<p class="data"><i><?=$data['thirtyComsumer']?></i>个</p>
		</div>
	</div>
</div>
<div class="n-row dmspay-panel">
	<div class="n-col-12 n-nopadding">
		<div class="a-tabs a-tabs-show">
			<ul class="a-tabs-head">
				<li class="a-tabs-active"><a href="">控制台</a></li>
				<li><a href="">数据分析</a></li>
				<li><a href="<?=n_url('dmspay', 'siteBill', array('scode'=>$data['scode']))?>">站点账单</a></li>
				<li><a href="<?=n_url('stasite', 'tokenSta', array('scode'=>$data['scode']))?>">标签统计</a></li>
			</ul>
			<div class="a-tabs-body">
			    <div class="a-tabs-content a-tabs-active n-nopadding">
			         <div class="content">
	<?php
	//$tools[] = n_ui(n_url("nsite","edit",array('id'=>$data['info']['id'])),"设置");
	$tools[] = n_ui(n_url("nsite","playerEdit",array('id'=>$data['info']['id'])),"人员");
	//$tools[] = n_href(n_url("nsite","del",array('id'=>$data['info']['id'])),"删除");
	echo n_mod('skin')->pageHead($data['info']['name']."概况",$tools)
	?>	

<div class="n-row data-summary-wrapper">
	<div class="n-col-12 data-summary">
		摘要报告：<br/>
 		<br/>
		站点准确率：80%<br/>
		删除比率：9%<br/>
		最大删除标签：色情、URL、短文模板<br/>
	</div>
</div>

<div class="n-row data-summary-wrapper">
	<div class="n-col-12 data-summary data-event">
		事件提示：<br/>
		2015-3-11 10:41:16 发现“标签1，标签2，标签5”344次<br/>
		2015-3-11 10:43:45 发现“标签2，标签10，标签6”89次<br/>
	</div>
</div>

<div class="n-sep">
	<div>
		<h1>站点统计</h1>
		<div>
			<?php
			$line = n_api("zingchart")->line("last24");
			$line->title("数据量统计");
			$line->size(360,252);
			$line->x($data['x']);
			//$line->y("0:100:10");
			$line->data(array_values($data['last24total']),"数据量");
			$line->data(array_values($data['last24del']),"删除量");
			?>
			<div style="display: inline-block;border:1px solid #ccc;"><?=n_mod('zingchart')->show($line->data)?></div>
			

			<?php
			$pie = n_api("zingchart")->pie("last24pie");
			$pie->title("内容过滤比率");
			$pie->size(360,252);
			$pie->data('删除',intval($data['last24state']['-1']));
			$pie->data('无特征',intval($data['last24state']['0']));
			$pie->data('通过',intval($data['last24state']['2']));
			$pie->data('监控',intval($data['last24state']['1']));
			//print_r($pie->data);
			?>
			<div style="display: inline-block;border:1px solid #ccc;margin-left:30px;"><?=n_mod('zingchart')->show($pie->data)?></div>

		</div>
	</div>
		<!--
	<div>
		
		
		<h1 class="n-sep-top">昨日统计</h1>
		<?php
		//n_mod('stasite')->indexMod($data['scode'])
		?>
		<style>
		table{border:1px solid #ccc;border-width: 1px 0px 0px 1px;width:100%;}
		
		table th,table td{border:1px solid #ccc;border-width: 0px 1px 1px 0px;padding:4px 10px;}
		table th{font-weight: bold;color:#56945D;background-color:#eee;}
		</style>
		<h1 class="n-sep-top">频繁关键词TOP10</h1>
		<table>
			<tbody>
			<tr>
				<th>序号</th>
				<th>关键词</th>
				<th>频次</th>
				<th>属性</th>
			</tr>
			<?php
			for($i=0;$i<10;$i++){
			?>
			<tr>
				<td><?=$i?></td>
				<td>关键词</td>
				<td><?=rand(100,1000)?></td>
				<td>色情</td>
			</tr>
			<?php
			}
			?>
			</tbody>
		</table>
	</div>
		-->
</div>
</div>
			    </div>
			</div>
		</div>
     </div>
</div>
<!-- <div class="n-row">
	<div class="n-col-8">
		<div class="n-col-5 n-nopadding-left">
			账户余额：<span class="dmspay-balance-pre">0</span><span class="dmspay-balance-next">.00</span>&nbsp;元
		</div>
		<div class="n-col-4"><button class="a-button-blue dmspay-balance-recharge">充值</button></div>
		<div class="n-col-3"></div>
	</div>
	<div class="n-col-4"></div>
</div> -->

<style type="text/css">
.n-sep{
	margin-top: 0px;
}
</style>